<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right" style="font-size: 16px">
      <el-breadcrumb-item :to="{ path: '/' }">后台管理</el-breadcrumb-item>
      <el-breadcrumb-item>学生管理</el-breadcrumb-item>
      <el-breadcrumb-item>退学学生奖惩信息</el-breadcrumb-item>
    </el-breadcrumb>
    <el-divider></el-divider>
    <el-descriptions title="奖惩信息">
      <el-descriptions-item label="学生头像">{{ruleForm.url}}</el-descriptions-item>
      <el-descriptions-item label="学生姓名">{{ruleForm.name}}</el-descriptions-item>
      <el-descriptions-item label="学生专业">{{ruleForm.major}}</el-descriptions-item>
      <el-descriptions-item label="奖惩名">{{ruleForm.aname}}</el-descriptions-item>
      <el-descriptions-item label="奖惩方案">{{ruleForm.aproject}}</el-descriptions-item>
      <el-descriptions-item label="备注">
        <el-tag size="small">学校</el-tag>
      </el-descriptions-item>
    </el-descriptions>
  </div>
</template>


<script>
export default {
  data() {
    return {
      ruleForm: {
        id:'',
        name: '',
        major: "",
        url:'',
        aname:'',
        aproject:'',
      },
    };
  },
  methods: {
    loadDropStudentDetailList(dropStudent) {
      let url = 'http://localhost:9801/dropStudents/'+dropStudent.id+'/cause';
      console.log(url)
      this.axios.get(url).then((response) => {
        console.log(response)
        let responseBody = response.data;
        if (responseBody.state == 20000) {
          this.ruleForm = responseBody.data;
        } else {
          this.$message.error(responseBody.message);
        }
      })
    },
    },
  mounted() {
    this.loadDropStudentDetailList();
  }
}
</script>